package com.cskaoyan.mall.pay.service;

import com.cskaoyan.mall.pay.dto.PaymentRequest;
import com.cskaoyan.mall.pay.dto.alipay.AlipayQueryRetResponse;
import com.cskaoyan.mall.pay.dto.alipay.AlipaymentResponse;


/**
 * 支付操作相关的服务
 */
public interface PayCoreService {


    /**
     * 支付宝支付执行支付操作
     * @param request
     * @return
     */
    AlipaymentResponse aliPay(PaymentRequest request);

    /**
     * 获取支付宝支付结果
     * @param request
     * @return
     */
    AlipayQueryRetResponse queryAlipayRet(PaymentRequest request);


}
